getOneAdmin();
function getOneAdmin() {
		$("#zhuangtai").html("");
	  $("#phones").html("");	
	$.ajax({
		url: urlcore + "/api/user/getadmin",
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
				var da=data.data;
             $("#phones").html(da.phone);
          $("#xiugai").attr("href","12.7.7shezhi_xiugaishouji.html?phone="+da.phone);
              if(da.payPwd==''||da.payPwd==null){
              	$("#zhuangtai").html("未设置");
              	$("#zhifulianjie").attr("href","12.7.2shezhi_mima.html?id="+da.id);
              }else{
              	$("#zhuangtai").html("已设置");
                $("#zhifulianjie").attr("href","12.7.2shezhi_mima.html?id="+da.id+"&xiugai=x");
              }
          
               $("#yinhangka").attr("href","12.7.4shezhi_bank.html?id="+da.id);
          
          
			} else{
				   $("#xiugai").attr("href","12.7.7shezhi_xiugaishouji.html");
			}
		},
		error:function() {
			/* Act on the event */
			alert("error");
		}
	});	
}



//退出登录
function loginout() {
	$.ajax({
		url: urlcore + "/api/login/logout",
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
					window.location.href="../1.0.0denglu.html";
			} else {
			  alert("退出未成功！");
			}
		},
		error:function() {
			/* Act on the event */
			alert("error");
		}
	});
}

